/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="CARATERATENDIMENTO")
public class CaraterAtendimentoProteu implements Serializable{

    @Id
    @Column(name="CAA_ST_CODIGO")
    private String caaStCodigo;
    @Column(name="CAA_ST_DESCRICAO")
    private String caaStDescricao;

    public String getCaaStCodigo() {
        return caaStCodigo;
    }

    public void setCaaStCodigo(String caaStCodigo) {
        this.caaStCodigo = caaStCodigo;
    }

    public String getCaaStDescricao() {
        return caaStDescricao;
    }

    public void setCaaStDescricao(String caaStDescricao) {
        this.caaStDescricao = caaStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final CaraterAtendimentoProteu other = (CaraterAtendimentoProteu) obj;
        if ((this.caaStCodigo == null) ? (other.caaStCodigo != null) : !this.caaStCodigo.equals(other.caaStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 59 * hash + (this.caaStCodigo != null ? this.caaStCodigo.hashCode() : 0);
        return hash;
    }


}
